package 排序查找;

import java.util.Arrays;

import static 排序查找.common.nums;

public class bubble {
    public static void bubble_test(int[] list) {
        for (int i = 0; i < list.length; i++) {
            for (int j = 1; j < list.length - i; j++) {
                if (list[j]<list[j-1]) {
                    common.exchange(list,j,j-1);
                }
            }
        }
    }

    public static void main(String[] args) {

        bubble_test(nums);
        System.out.println(Arrays.toString(nums));
    }
}
